# -*- coding: utf-8 -*-
import os
from celery import Celery


os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'meiduo_mall.settings')
app = Celery('celery_tasks')
# 加载配置文件来设置broker
app.config_from_object('celery_tasks.config')
# celery自动检测指定包的任务
app.autodiscover_tasks(['celery_tasks.sms', 'celery_tasks.email'])
